package automatagen;

import java.util.ArrayList;

public class Node {
	private String name;
	private ArrayList<Transition> transitions;
	private boolean visited = false;
	
	public Node(String name) {
		this.name = name;
		visited = false;
		transitions = new ArrayList<Transition>();
	}
	
	public String getName() {
		return name;
	}

	public boolean isVisited() {
		return visited;
	}

	public void addTransition(Transition transition){
		this.transitions.add(transition);
	}
	
	public void toVisit(){
		this.visited = true;
	}
	
}
